curl --request GET \
--url https://api.topsort.com/public/v1/toppie/campaigns \
--header 'Authorization: Bearer <token>'{
"hasMore": true,
"campaigns": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"adFormat": "banner",
"chargeType": "CPM",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budget": 123,
"budgetPeriod": "daily",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"targetRoas": 10.25,
"currencyCode": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"bidCount": 123
}
],
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
}Retrieve a list of campaigns associated with a specific account.
curl --request GET \
--url https://api.topsort.com/public/v1/toppie/campaigns \
--header 'Authorization: Bearer <token>'{
"hasMore": true,
"campaigns": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"adFormat": "banner",
"chargeType": "CPM",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budget": 123,
"budgetPeriod": "daily",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"targetRoas": 10.25,
"currencyCode": "<string>",
"isActive": true,
"createdAt": "2023-11-07T05:31:56Z",
"bidCount": 123
}
],
"nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
}A valid API key generated in Topsort's UI.
Pagination cursor as provided in an earlier response. If provided will fetch the next page of results.
Limit of accounts to retrieve.
x <= 100Successful Response
Flag that indicates whether more results are available. true indicates there is a next page of results. false indicates this response contains the last page of results.
List of campaigns that belong to the agency
Show child attributes
Internal identifier for the agency campaign
Campaign name
The ad format for this campaign
banner, listing The charge type for this campaign
CPM, CPC, CPA Account that owns this campaign
Total budget for this campaign
The periodicity of the budget
daily, weekly, monthly, total Target ROAS for the campaign
0.5 <= x <= 20Currency code this campaign is working with in ISO 4217 format
Flag to indicate if the campaign is active or not
Date and time when the campaign was created
Bid count for the campaign (optional)
Pagination cursor. Provide this value as a next_page query parameter in a new request to retrieve the next page of results.
1"SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
Was this page helpful?